class People
//
//
{
  protected double weight,height;
  public void speakHello()
  {
     System.out.println("yayawawa"); 
  }
  public void averageHeight()
  {
     height = 173;
     System.out.println("average height:" + height);
  }
  public void averageWeight()
  {
     weight = 70;
     System.out.println("average weight:" + weight);
  }
}
class ChinaPeople extends People
//
//
{
public void speakHello()
  {
     System.out.println("Hello , eat?");
  }
  public void averageHeight()
  {
     height = 168.78;
     System.out.println("average height:" + height);
  }
  public void averageWeight()
  {
     weight = 65;
     System.out.println("average weight:" + weight);
  }
  public void chinaGongfu()
  {
     System.out.println("average weight:" + weight);
  }
}
class AmericanPeople extends People
//
//
 {
   public void speakHello()
   {
   System.out.println("how do you do");
   }
   public void averageHeight()
   {
      height = 180;
      System.out.println("average height:" + height);
   }
   public void averageWeight()
   {
      weight = 80;
      System.out.println("average weight :" + weight);
   }
   public void americanBoxing()
   {
      System.out.println("zhiquan.gouquan");
   }
 }
class BeijingPeople extends ChinaPeople
//
//
{
   public void speakHello()
   {
      System.out.println("Hello");
   }
   public void averageHeight()
   {
      height = 170.2;
      System.out.println("average height:" + height);
   }
   public void beijingOpera()
   {
      weight = 65;
      System.out.println("average weight:" + weight);
   }
   public void beijingOpera()
   {
      System.out.println("Opera");
   }
}
   public class Test5_8
//
//
   {
      public static void main(String[]args);
   {
      ChinaPeople chinaPeople = new ChinaPeople();
      AmericanPeople americanPeople = new AmericanPeople();
      BeijingPeople beijingPeople = new BeijingPeople();
      chinaPeople.speakHello();
      americanPeople.speakHello();
      beijingPeople.speakHello();
      chinaPeople.averageHeight();
      americanpeople.averageHeight();
      beijingPeople.averageHeight();
      chinaPeople.averageWeight();
      americanPeople.averageWeight();
      beijingPeople.averageWeight();
      chinaPeople.averageGongfu();
      americanPeople.americanBoxing();
      beijingPeople.beijingOpera();
      beijingPeople.chinaGongfu();
   }
   }   
